﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Cashflow;
using Cashflow.BLL.ReEx;

public partial class sys_reex_default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
		List<ReEx> items = ReEx.GetReExsByDay(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
		rep.DataSource = items;
		rep.DataBind();

		decimal totalAmount = 0;
		foreach (ReEx item in items)
		{
			totalAmount += item.Amount;
		}
		Response.Write(totalAmount.ToString());
    }
}